/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.lucava.boatskeeper.client.service;

import com.google.gwt.user.client.rpc.AsyncCallback;
import java.util.List;
import org.lucava.boatskeeper.shared.dto.CategoryDto;

/**
 *
 * @author glenn
 */
public interface CategoryServiceAsync {

    public void getCategories(AsyncCallback<List<CategoryDto>> callback);

    public void getCategory(Integer id, AsyncCallback<CategoryDto> callback);

    public void saveCategory(CategoryDto cat, AsyncCallback<Boolean> callback);

    public void removeCategory(CategoryDto at, AsyncCallback<Boolean> callback);

    public void removeCategories(List<Integer> ids, AsyncCallback<Boolean> callback);
}
